package com.wiscamp.ninechapters.problems.domain.gateway;

public interface UserGateway {
    // region user
    long getOrganizationIdByUser(long userId);

    long getFirstChildId(long parentId);

    long getUserIdByCode(String userCode, long appId);
    // endregion

    // region role
    boolean isStudent(long userId);

    boolean isParent(long userId);

    boolean isSchoolTeacher(long userId);

    boolean isAdministrator(long userId);

    long getRoleIdByCode(String roleCode, long appId);
    // endregion
}
